package org.cx.oa.service.impl;

import java.util.List;

import org.cx.oa.dao.WorkTimeDao;
import org.cx.oa.entity.WorkTime;
import org.cx.oa.service.WorkTimeService;
import org.cx.oa.util.BeanFactory;
import org.cx.oa.util.HibernateSessionUtil;
import org.hibernate.Query;
import org.hibernate.Session;

public class WorkTimeServiceImpl implements WorkTimeService{

	@SuppressWarnings("unchecked")
	private WorkTimeDao<WorkTime> workTimeDao=BeanFactory.getImpl(WorkTimeDao.class);
	
	@Override
	public List<WorkTime> FindAll() {
		
		return workTimeDao.findAll();
	}

	@Override
	public WorkTime ById(int id) {
		return workTimeDao.findById(id);
	}

	@Override
	public void Update(WorkTime obj) {
		workTimeDao.update(obj);
	}
	
}
